build: define "move-if-changed" make macro.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 14 Jul 2011 12:22:35 +0000 (13:22 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 14 Jul 2011 12:22:35 +0000 (13:22 +0100)
commit2407671d89b44df4aa7d976b6cb2ff99016ce202
tree7c99c488e47310c89279c7ffa49e7f17650066ab
parent872ecdc9b54f40b6b52318f423cc7073671e8b7c
build: define "move-if-changed" make macro.

Use it to replace various places which (should) use the
if ! cmp -s ...; then mv ....; fi
pattern.

Also add an else clause to cleanup the unchanged temporary file.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Config.mk
tools/libxl/Makefile